package georah.map.graphics
{

	import flash.geom.Point;
	
	import mx.core.UIComponent;

	/**
	 *
	 * @author yuanm
	 */
	public class MapGraphic extends UIComponent
	{
		protected var container:UIComponent=new UIComponent();

		override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
		{
			super.updateDisplayList(unscaledWidth, unscaledHeight);

			if (!contains(container))
			{
				addChild(container);
			}
		}
		
		public final function set pixel(value:Point):void
		{
			x=value.x;
			y=value.y;
		}

		public virtual function clone():MapGraphic
		{
			return new MapGraphic();
		}

	}
}
